{extend name="common/base" /}
<!--title-->
{block name="titlekeyword"}
<title>{$content}</title>

{/block}
<!--代码主要内容-->
{block name="main"}
<h6>内容</h6>

<h6>代码</h6>
<pre>
	&lt;script language="javascript"&gt;
	window.onload = function () {  //先加载页面内容 再加载js
		function Person(name, age) {
			this.name = name;
			this.age = age;
		}
		var p1 = new Person('abc', 80); /*<b>实例化 并传属性的参数</b> */
		window.alert(p1.name);
		var p2 = new Person('hello', 8);
		window.alert(p2.age);


	}
&lt;/script&gt; 

	 </pre> {/block}
<!--底部js 在这里是js的实际代码区-->
{block name="footjs"}
<script language="javascript">
	window.onload = function () {  //先加载页面内容 再加载js
		function Person(name, age) {
			this.name = name;
			this.age = age;
		}
		var p1 = new Person('abc', 80);
		window.alert(p1.name);
		var p2 = new Person('hello', 8);
		window.alert(p2.age);


	}
</script> {/block}